﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class meiju
    {
        enum a {
            新订单 = 1,
            已发货,
            已签收,
            已评价
        }
    public void fangfa1(){
            a fangfa = a.新订单;
            Console.WriteLine("请输入要查询的情况");
            Console.WriteLine("查询新订单请输入1、查询已发货订单输入2、查询已签收订单请输入3、查看已评价商品请输入4");
            int z = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine(z);
        }

        enum Fruit {
                香蕉=10,
                苹果=50,
                西瓜=3,
                草莓=65,
                葡萄=55,
                哈密瓜=15,
                奇异果=21,
        }
        public void fangfa2() {
            Console.WriteLine("你切到几个水果？");
            int num = Convert.ToInt32(Console.ReadLine());
            int a = (int)Fruit.香蕉;
            int b = (int)Fruit.苹果;
            int c = (int)Fruit.西瓜;
            int d = (int)Fruit.草莓;
            int f = (int)Fruit.葡萄;
            int g = (int)Fruit.哈密瓜;
            int e = (int)Fruit.奇异果;
            int sum = num;
            Console.WriteLine("你获得了{0}",sum);
        }
        enum RPG
        {
            战士,
            法师,
            精灵,
        }
        public void fangfa3() {
            Console.WriteLine("请输入你要选择的职业");
            string a = Console.ReadLine();
            RPG job1 =(RPG)Enum.Parse(typeof(RPG),a);
            Test(job1);
        }
    static void Test(RPG job1)

    {

        switch (job1)

        {

            case RPG.战士:

                Console.WriteLine("该职业的技能有：碎石打击、烈焰锚钩、战斗咆哮");

                break;

            case RPG.法师:

                Console.WriteLine("该职业的技能有：巨浪冲击、元素突击、复仇杀戮");

                break;

            case RPG.精灵:

                Console.WriteLine("该职业的技能有：减速陷阱、能量浪潮、旋风剑舞");

                break;

            default:

                break;

        }

    }


}

}
